package pers.zc.activiti.shejimoshi.guanchazhe.guanchazhe;

/**
 * @Annotion:
 * @ClassName: test
 * @Author: Lin Fuyuan
 * @Date: 2019/9/24  10:25
 * @Version: 1.0
 */
public class test {
    /**
     *
     */
    public static void main(String[] args){
        Subject subject = new ConcreteSubject();
        Observer observer = new ObserverImpl();
        /*使目标发生变化*/
        subject.add(observer);
        /*通知*/
        subject.notifyObserver();
    }
}
